#include <allegro.h>
#include "general.h"


void chargement_image_personnage(Personnage *p)
{
p->img_right[0] = load_bitmap("./images/right0.bmp", NULL);//chargement des sprites 
p->img_right[1] = load_bitmap("./images/right1.bmp", NULL);
p->img_right[2] = load_bitmap("./images/right2.bmp", NULL);

/*
p->img_left[0] = load_bitmap("./images/left0.bmp", NULL);
p->img_left[1] = load_bitmap("./images/left1.bmp", NULL);
p->img_left[2] = load_bitmap("./images/left2.bmp", NULL);*/

p->img_fix[0]  = load_bitmap("./images/right0.bmp", NULL);
p->img_fix[1]  = load_bitmap("./images/right1.bmp", NULL);
p->img_fix[2]  = load_bitmap("./images/right2.bmp", NULL);
}

void chargement_coins(coins *c1)
{
c1->img_coins=load_bitmap("./images/coins.bmp",NULL);//chargement des coins
}

void chargement_obstacle(obstacle *o)
{
o->img_obstacle=load_bitmap("./images/obstacle.bmp",NULL);//chargement de l'obstacle
}

